package com.scut.campus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scut.campus.entity.Comment;
import com.scut.campus.query.CommentQuery;
import com.scut.campus.query.base.PageQuery;
import com.scut.campus.vo.CommentVo;
import com.scut.campus.vo.SubCommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    List<CommentVo> queryTopComments(@Param("commentQuery") CommentQuery commentQuery);

    List<SubCommentVo> querySubComments(@Param("commentIds") List<String> commentIds);

    List<SubCommentVo> queryMoreSubComments(@Param("pageQuery") PageQuery pageQuery);
}
